<ion-view class="bg">
  <ion-header-bar class="bar bar-positive">
    <button class="button back-button buttons icon ion-ios-arrow-left button-clear" nav-direction="back" ui-sref="tab.workbench">返回</button>
    <h3 class="title">我的收货</h3>
    <button class="button button-icon icon ion-ios-search" ng-click="modal.show()"></button>
  </ion-header-bar>
  <ion-content>
    <ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
    <div ng-if="showloading" class="ion-spinner">
      <ion-spinner icon="lines" class="spinner-calm"></ion-spinner>
    </div>
    <ion-list class="myList">
      <h5 ng-if="orderData==''" class="notFound">未找到数据</h5>
      <li class="item li" ng-click="goDetail(data.ID)" ng-repeat="data in orderData">
        <div>
          <i class="contentColor">订单编号</i>
          <i class="value">{{data.ORDER_NO}}</i>
        </div>
        <img src="img/orderState-{{data.ORDER_STATUS}}.png" class="stateImg">
        <div>
          <i class="contentColor">货物名称</i>
          <i class="value">{{data.GOODS_NAME}}</i>
          <i class="value">{{data.PIECES}}件</i>
        </div>
        <div>
          <i class="contentColor">发货电话</i>
          <a class="value" ng-click="callPhone(data.CONSIGNORPHONE);$event.stopPropagation();" style="text-decoration: underline;color: #387ef5;">{{data.CONSIGNORPHONE}}</a>
        </div>
        <div>
          <i class="contentColor">提货方式</i>
          <i class="value" ng-if="data.DELIVERY_TYPE=='0'">自提</i>
          <i class="value" ng-if="data.DELIVERY_TYPE=='1'">送货</i>
          <i class="value" ng-if="data.DELIVERY_TYPE=='2'">上楼</i>
          <!--<i class="value" style="float: right;">{{data.DECLARE_VALUE}}元</i>-->
          <!--<i class="contentColor" style="float: right;">货到收款</i>-->
        </div>
        <!--<div class="btnDiv">-->
          <!--<button class="button longButton" style="width: 80%;">快捷支付</button>-->
        <!--</div>-->
      </li>
    </ion-list>
    <ion-infinite-scroll on-infinite="loadMore()" distance="1%" ng-if="hasNextPage()"></ion-infinite-scroll>
  </ion-content>
</ion-view>
